﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMPLib;

namespace LibDianGe
{
    public class MusicPlayer
    {
        public void Play(ref List<string> list)
        {
            WindowsMediaPlayer _player = new WindowsMediaPlayer();
            _player.URL = list[list.Count - 1];
            _player.controls.play();
        }
    }
}
